import {
  HTTP
} from '../utils/http-p.js'

class WeixinModel extends HTTP {
  weixinLogin(code) {
    return this.request({
      url: `wechat/codeAuth/${code}`
    })
  }

  decryptUserInfo(data){
    return this.request({
      url: "wechat/decrypt",
      method: 'POST',
      data: data
    })
  }

  decryptSteps(data) {
    return this.request({
      url: "wechat/decryptSteps",
      method: 'POST',
      data: data
    })
  }
}

export { WeixinModel }